package com.itcast.service.impl;

import com.itcast.pojo.Orders;
import com.itcast.mapper.OrdersMapper;
import com.itcast.service.Ordersservice;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ${author}
 * @since 2020-06-19
 */
@Service
public class OrdersServiceImpl extends ServiceImpl<OrdersMapper, Orders> implements Ordersservice {
    @Autowired
    private OrdersMapper ordersMapper;

    @Override
    public List<String> countorders(int id) {
        return ordersMapper.countorders(id);
    }

    @Override
    public Map<String, Object> hotSale() {
        return ordersMapper.hotSale();
    }
}
